package enumdemo;

import java.util.Random;

public class TestEnum {
    public static  void  main(String[] args){
        int n = new Random().nextInt(4);
        switch (Season.values()[n]){
            case SPRING:
                System.out.println("春天");
                break;
            case SUMMER:
                System.out.println("夏天");
                break;
            case AUTUMU:
                System.out.println("秋天");
                break;
            case WINDER:
                System.out.println("冬天");
                break;
        }
    }
}
